package com.martini.satoken01.model.mapper.impl;

import com.martini.satoken01.model.domain.OnlineInfoDO;
import com.martini.satoken01.model.mapper.OnlineInfoModelMapper;
import com.martini.satoken01.model.vo.OnlineInfoVO;
import org.springframework.beans.BeanUtils;

/**
 * @author martini at 2021/12/23 22:39
 */
public class BeanUtilsOnlineInfoModelMapper implements OnlineInfoModelMapper {
    @Override
    public OnlineInfoVO toOnlineInfoVO(OnlineInfoDO onlineInfoDO) {
        OnlineInfoVO onlineInfoVO = new OnlineInfoVO();
        BeanUtils.copyProperties(onlineInfoDO, onlineInfoVO);
        return onlineInfoVO;
    }
}
